<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../node_modules//vue/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <button @click="random = Math.random()">点我</button>
        <span>{{random}}</span>
        <h1 v-if="random >= 0.75">&gt;=0.75</h1>
        <h1 v-else-if="random >= 0.5">&gt;=0.5</h1>
        <h1 v-else-if="random >= 0.2">&gt;=0.2</h1>
        <h1 v-else="">&lt;0.2</h1>
    </div>  
    <script>
        new Vue({
            el: "#app",
            data: {
                random : 1
            },
            methods: {
                
            }
        })
    </script>

</body>

</html>